<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title> p2p网贷平台 </title>

    <link href="<%=basePath%>css/common.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/user.css" />
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/jquery.datetimepicker.css"/>
    <script type="text/javascript" src="<%=basePath%>script/jquery.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>script/common.js"></script>
    <script src="<%=basePath%>script/user.js" type="text/javascript"></script>
    <link href="<%=basePath%>css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="<%=basePath%>js/jquery.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="<%=basePath%>js/bootstrap.min.js"></script>
</head>
<body onload="checks();">
<jsp:include page="head.jsp"></jsp:include>


<div class="wrapper wbgcolor">
    <div class="w1200 personal">
        <!-- 导航栏 --><jsp:include page="left.jsp"></jsp:include>

        <div class="personal-main">
            <link rel="stylesheet" type="text/css" href="css/fileupload.less.css">
            <style type="text/css">
                .ui-fileupload-choose{
                    background:none;
                    width: 90px; height: 90px;
                    border:0px none;
                }
                .ui-fileupload-choose input{
                    width:100%;height:100%;
                }
                .ui-icon{
                    background:none;
                    width:0px;height:0px;
                }
            </style>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">还款表</h3>
                    </div>
                    <div class="panel-body">
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>用户名</th>
                                <th>真实姓名</th>
                                <th>通过认证数量</th>
                                <th>标的类型</th>
                                <th>借款标题</th>
                                <th>借款金额</th>
                                <th>利率</th>
                                <th>期限</th>
                                <th>筹标期限</th>
                                <th>状态</th>
                                <th>推荐标的</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${list}" var="list" varStatus="status">
                                <tr>
                                    <td>${status.index+1}</td>
                                    <td>${list.busername}</td>
                                    <td>${list.brelname}</td>
                                    <td>${list.bpass}</td>
                                    <td><c:forEach items="${bList}" var="li">
                                        <c:if test="${li.id==list.btype}">${li.bname}</c:if>
                                    </c:forEach></td>
                                    <td>${list.btitle}</td>
                                    <td>${list.bmoney}</td>
                                    <td><c:if test="${list.brate eq null}">
                                        0
                                    </c:if>
                                        <c:if test="${list.brate !=null}">
                                            ${list.brate}
                                        </c:if> %</td>
                                    <td>${list.btimelimit}</td>
                                    <td>${list.blimit}</td>
                                    <td><c:if test="${list.bstate==0}">提交申请未处理</c:if> <c:if
                                            test="${list.bstate==1}">后台审核通过</c:if> <c:if
                                            test="${list.bstate==2}">审核失败</c:if> <c:if
                                            test="${list.bstate==3}">已还款</c:if></td>
                                    <td>${list.brecommend}</td>
                                    <td>
                                        <a href="${pageContext.request.contextPath}/repayment.do?id=${list.id}" >还款</a>
                                    </td>
                                </tr>
                            </c:forEach>
                            <tr align="center">
                                <td colspan="13"><a
                                        href="#"
                                        class="btn btn-success btn-ms ">首页</a> <a
                                        href="#"
                                        class="btn btn-success btn-ms ">&lt;&lt;上一页</a> <a
                                        href="#"
                                        class="btn btn-success btn-ms "> 下一页&gt;&gt;</a> <a
                                        href="#"
                                        class="btn btn-success btn-ms "> 尾页</a> 当前<font color="#0000ff">1</font><font
                                        color="red">/1</font>页
                                    </td>
                            </tr>
                            </tbody>

                        </table>
                    </div>
                </div>


            <script type="text/javascript">

            </script>
            <div class="clear"></div>
        </div>
    </div>
    <!--网站底部-->
    <!-- 导航栏 -->
    <jsp:include page="bottom.jsp"></jsp:include>
</div>

</body>
</html>
